import request from '@/utils/request'

// 查询发货计划列表
export function listDeliveryPlanInfo(query) {
  return request({
    url: '/yard/DeliveryPlanInfo/homePage/list',
    method: 'get',
    params: query
  })
}


// 查询发货计划详细
export function getDeliveryPlanInfo(id) {
  return request({
    url: '/yard/DeliveryPlanInfo/' + id,
    method: 'get'
  })
}

// 新增发货计划
export function addDeliveryPlanInfo(data) {
  return request({
    url: '/yard/DeliveryPlanInfo',
    method: 'post',
    data: data
  })
}

// 修改发货计划
export function updateDeliveryPlanInfo(data) {
  return request({
    url: '/yard/DeliveryPlanInfo',
    method: 'put',
    data: data
  })
}

// 删除发货计划
export function delDeliveryPlanInfo(id) {
  return request({
    url: '/yard/DeliveryPlanInfo/' + id,
    method: 'delete'
  })
}
// 添加
export function listCompWarehouseInfosecl(query) {
  return request({
    url: '/yard/compWarehouseInfo/list',
    method: 'get',
    params: query
  })
}



// 统计
export function getDeliveryPlanStatistics(query) {
  return request({
    url: '/yard/DeliveryPlanInfo/statistics',
    method: 'get',
    params: query
  })
}


// 审核
export function ToExamine(data) {
  return request({
    url: '/yard/DeliveryPlanInfo/toExamine',
    method: 'post',
    data: data
  })
}


// 库存统计
export function getCompWarehouseStatistics(query) {
  return request({
    url: '/yard/compWarehouseInfo/statistics',
    method: 'get',
    params: query
  })
}
